import 'package:data_plugin/bmob/table/bmob_object.dart';
/// CreateTime 2020/6/5 14:22
/// CreateUser chen 
/// ProjectName flutter_elf
import 'package:flutter_elf/config/component_index.dart';
import 'package:flutter_elf/widgets/common_widgets.dart';

class BmobPicturePage extends StatefulWidget{
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return BmobPicturePageState();
  }
}
List<String> strs = [
  '1',
  '1029',
  '1184',
  '1227',
  '1268',
  '1348',
  '1350',
  '1375',
  '1503',
  '1537',
  '1683',
  '1736',
  '1749',
  '1782',
  '1861',
  '1896',
  '1940',
  '1963',
  '2',
  '2051',
  '2060',
  '217',
  '220',
  '2226',
  '2557',
  '2658',
  '2665',
  '2725',
  '2879',
  '2952',
  '3061',
  '309',
  '3159',
  '3180',
  '3274',
  '33',
  '3587',
  '361',
  '3618',
  '3620',
  '369',
  '37',
  '3897',
  '3951',
  '3992',
  '413',
  '4156',
  '4226',
  '4370',
  '4377',
  '4422',
  '4489',
  '4665',
  '4711',
  '4737',
  '4777',
  '480',
  '4874',
  '4933',
  '6',
  '62',
  '656',
  '676',
  '693',
  '734',
  '756',
  '861',
  '907',
];
class BmobPicturePageState extends State{
  List<Pic> ls = [];
  @override
  void initState() {
    // TODO: implement initState
    super.initState();
    ls = strs.map((s){
      return Pic('http://chen412115.oss-cn-beijing.aliyuncs.com/tatox-v0.0.1.5.apk/${s}', s);
    }).toList();
  }
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBarCreator.create(context, 'picture'),
      body: Column(
        children: <Widget>[
          buildButton('上传', ()async{
//            scheduleMicrotask();
          }),
        ],
      ),
    );
  }
}

class Pic extends BmobObject{

  String url;
  String name;
  @override
  Map getParams() {
    // TODO: implement getParams
    return null;
  }

  Pic(this.url, this.name);
}